package org.insist.best.codeGenerator.bo;

import lombok.Data;
import org.insist.best.codeGenerator.core.DbConfig;
import org.insist.best.codeGenerator.core.DbType;

@Data
public class QueryBo {

    private String dbType;

    private String host;

    private int port;

    private String dbName;

    private String userName;

    private String password;

    private int page;

    private int pageSize;

    private String queryTableName;

    public DbConfig toDbConfig() {
        return new DbConfig(DbType.valueOf(dbType), host, port, dbName, userName, password);
    }

}
